package org.imlinker.plugin;
 
import javax.swing.JPopupMenu;

import org.imlinker.message.MessageItem;

/**
 * The base class of plugin classes.It defined the methods that can be used in
 * plugin.
 */

public class PluginItem extends MessageItem {

	/**
	 * The holded plugin.
	 */
	private Plugin plugin;

	private String title;

	/**
	 * 
	 * @param file
	 *            The plugin dir.
	 * 
	 */
	public PluginItem(String title) {
		super(title);
		
		this.title = title;
	}

	/**
	 * Double click event.
	 */
	public final void doubleClick() {
		if (plugin != null) {
			plugin.doubleClick();
		}
	}

	/**
	 * Double click event.
	 * 
	 * @return The PluginItem's popupMenu.
	 */
	public final JPopupMenu getPopupMenu() {
		return null;
	}

}
